package hx.com.entity;

import java.io.Serializable;

/***********************************************************************
 * Module:  NetPackage.java
 * Author:  Wys 2019/1/2
 * Purpose: Defines the Class NetPackage
 ***********************************************************************/


public class NetPackage extends ServicePackage implements Serializable {

   private static final long serialVersionUID = 6216923177583831766L;
   private int flow;

   public NetPackage() {
      super(68);
      this.flow=3074;
   }

   public int getFlow() {
      return flow;
   }


   @Override
   public void show() {
      System.out.println("套餐名字："+"\t"+"网虫套餐");
      System.out.println("通话时长（分钟）："+"\t"+"无");
      System.out.println("上网流量（GB）："+"\t"+this.flow/1024);
      System.out.println("短信条数："+"\t"+"无");
      System.out.println("资费（元/月）："+"\t"+super.getPrice());
   }

   @Override
   public void showInfo() {
      System.out.println("通话时长："+"0"+"分钟");
      System.out.println("短信条数："+"0"+"分钟");
      System.out.println("上网流量："+getFlow()+"MB");
   }

   /** @param flow
    * @param card
     */
   public void netPlay(int flow, MobileCard card) {
      // TODO: implement
   }

}